<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div>
      <!-- 属性绑定 -->
      <input type="text" :value="msg" />
      <input type="text" v-bind:value="msg" />
      <a :href="url">超链接</a>
      <img :src="imgUrl" alt="" />
    </div>

    <!-- 本地引入vue.js框架文件 -->
    <script src="js/vue.js"></script>
    <script>
      let app = new Vue({
        el: "body>div",
        data: {
          msg: "属性绑定测试",
          url: "https://cn.bing.com",
          imgUrl: "img/1.gif",
        },
      });
    </script>
  </body>
</html>
